package org.dochandler.service;

import java.util.List;

import org.dochandler.service.domain.Criteria;
import org.dochandler.service.domain.Document;

public interface DocumentService<T extends Document> {
	Boolean create(T document);
	T read(Long documentId);
	Boolean delete(Long documentId);
	Boolean edit(T document);
	List<T> listAll();
	List<T> listByCriteria(Criteria<?> criteria);
}
